// lcm的接口补充
import { fetch, oss } from '@/utils/fetch.js';
// 获取学校类型枚举
export function enumschoolschoolType(params) {
  return fetch({
    url: '/usercenter/enum/school/schoolType',
    method: 'POST',
    data: params,
  });
}
// 获取学生规模枚举
export function enumschoolstudentScale(params) {
  return fetch({
    url: '/questionlibenumschoolstudentScale',
    method: 'POST',
    data: params,
  });
}
// 获取学校年级和班级信息
export function adminschoolgradeStudentStatistics(params) {
  return fetch({
    url: '/usercenter/admin/school/gradeStudentStatistics',
    method: 'POST',
    data: params,
  });
}
// 获取学校年级和班级信息
export function adminschoolclassesgradeClassesStatistics(params) {
  return fetch({
    url: '/usercenter/admin/school/classes/gradeClassesStatistics',
    method: 'POST',
    data: params,
  });
}
// 获取教师规模枚举
export function enumschoolteacherScale(params) {
  return fetch({
    url: '/usercenter/enum/school/teacherScale',
    method: 'POST',
    data: params,
  });
}
//获取所有枚举的接口
export function enumschoolall(params) {
  return fetch({
    url: '/usercenter/enum/school/all',
    method: 'POST',
    data: params,
  });
}
// 获取教育的所有枚举接口
export function enumeduall(params) {
  return fetch({
    url: '/usercenter/enum/edu/all',
    method: 'POST',
    data: params,
  });
}
// 查询学校列表
export function adminschoollist(params) {
  return fetch({
    url: '/usercenter/admin/school/list',
    method: 'POST',
    data: params,
  });
}
// 学校添加
export function adminschooladd(params) {
  return fetch({
    url: '/usercenter/admin/school/add',
    method: 'POST',
    data: params,
  });
}
// 学校更新
export function adminschoolupdate(params) {
  return fetch({
    url: '/usercenter/admin/school/update',
    method: 'POST',
    data: params,
  });
}
// 学校导入
export function adminimportschool(params) {
  return fetch({
    url: '/usercenter/admin/import/school',
    method: 'POST',
    data: params,
  });
}
// 获取学校详情
export function adminschoolinfo(params) {
  return fetch({
    url: '/usercenter/admin/school/info',
    method: 'POST',
    data: params,
  });
}
// 保存校长信息
export function adminschoolmastersave(params) {
  return fetch({
    url: '/usercenter/admin/school/master/save',
    method: 'POST',
    data: params,
  });
}
// 获取省市区的接口
export function regiongetAll(params) {
  return fetch({
    url: '/usercenter/region/all',
    method: 'GET',
    data: params,
  });
}
// 学校的导入
export function adminimportschoolExport(params, type) {
  return oss({
    baseUrl: '/usercenter/admin/import/school',
    method: 'POST',
    data: params,
    type: type,
  });
}
// 学校老师的导入
export function adminimportschoolteacher(params, type) {
  return oss({
    baseUrl: '/usercenter/admin/import/school/teacher',
    method: 'POST',
    data: params,
    type: type,
  });
}
// 学生的导入
export function adminimportschoolstudent(params, type) {
  return oss({
    baseUrl: '/usercenter/admin/import/school/student',
    method: 'POST',
    data: params,
    type: type,
  });
}
// 获取老师的列表
export function adminschoolteacherlist(params) {
  return fetch({
    url: '/usercenter/admin/school/teacher/list',
    method: 'POST',
    data: params,
  });
}
// 保存教师信息
export function adminschoolteachersave(params) {
  return fetch({
    url: '/usercenter/admin/school/teacher/save',
    method: 'POST',
    data: params,
  });
}
// 删除老师
export function adminschoolteacherdelete(params) {
  return fetch({
    url: '/usercenter/admin/school/teacher/delete',
    method: 'POST',
    data: params,
  });
}
// 保存教师班级
export function adminschoolteacheraddClass(params) {
  return fetch({
    url: '/usercenter/admin/school/teacher/addClass',
    method: 'POST',
    data: params,
  });
}
// 保存教师班级
export function adminschoolteacheraddSubjectClass(params) {
  return fetch({
    url: '/usercenter/admin/school/teacher/addSubjectClass',
    method: 'POST',
    data: params,
  });
}
// 清除教师班级
export function adminschoolteacherclearClass(params) {
  return fetch({
    url: '/usercenter/admin/school/teacher/clearClass',
    method: 'POST',
    data: params,
  });
}
// 添加学校班级
export function adminschoolclassesadd(params) {
  return fetch({
    url: '/usercenter/admin/school/classes/addBatch',
    method: 'POST',
    data: params,
  });
}
// 编辑学校班级
export function schoolclassesupdateBatch(params) {
  return fetch({
    url: '/usercenter/admin/school/classes/updateBatch',
    method: 'POST',
    data: params,
  });
}
// 更新学校班级
export function adminschoolclassesupdate(params) {
  return fetch({
    url: '/usercenter/admin/school/classes/update',
    method: 'POST',
    data: params,
  });
}
// 获取学校班级列表
export function adminschoolclasseslist(params) {
  return fetch({
    url: '/usercenter/admin/school/classes/list',
    method: 'POST',
    data: params,
  });
}
// 获取学生列表
export function adminschoolstudentlist(params) {
  return fetch({
    url: '/usercenter/admin/school/student/list',
    method: 'POST',
    data: params,
  });
}
// 添加学生
export function adminschoolstudentsave(params) {
  return fetch({
    url: '/usercenter/admin/school/student/save',
    method: 'POST',
    data: params,
  });
}
// 添加空间
export function adminschoolroomadd(params) {
  return fetch({
    url: '/usercenter/admin/school/room/add',
    method: 'POST',
    data: params,
  });
}
// 更新空间
export function adminschoolroomupdate(params) {
  return fetch({
    url: '/usercenter/admin/school/room/update',
    method: 'POST',
    data: params,
  });
}
// 查询学校的空间
export function adminschoolroomlist(params) {
  return fetch({
    url: '/usercenter/admin/school/room/list',
    method: 'POST',
    data: params,
  });
}
// 保存设备信息
export function adminschoolroomsaveDevice(params) {
  return fetch({
    url: '/usercenter/admin/school/room/saveDevice',
    method: 'POST',
    data: params,
  });
}
// 解绑设备信息
export function adminschoolroomunBindDevice(params) {
  return fetch({
    url: '/usercenter/admin/school/room/unBindDevice',
    method: 'POST',
    data: params,
  });
}
// 获取房间设备列表
export function adminschoolroomdeviceList(params) {
  return fetch({
    url: '/usercenter/admin/school/room/deviceList',
    method: 'POST',
    data: params,
  });
}
export function adminSchoolTimetableClassCourse(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/class/course',
    method: 'POST',
    data: params,
  });
} //更新班级课表某个选项
export function adminSchoolTimetableClassCourseClear(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/class/course/clear',
    method: 'POST',
    data: params,
  });
} //清空班级课表详情
export function adminSchoolTimetableClassCourseDetail(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/class/course/detail',
    params,
    method: 'GET',
  });
} //班级课表详情
export function adminSchoolTimetableClassCourseList(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/class/course/list',
    params,
    method: 'GET',
  });
} //学期年级班级课表列表
export function adminSchoolTimetableGradeConfig(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/grade/config',
    method: 'POST',
    data: params,
  });
} //添加年纪配置
export function adminSchoolTimetablegradeList(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/grade/list',
    params,
    method: 'GET',
  });
} //年级列表
export function adminSchoolTimetableInfo(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/info',
    params,
    method: 'GET',
  });
} //节次设置详情
export function adminSchoolTimetableList(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/list',
    params,
    method: 'GET',
  });
} //节次列表
export function adminSchoolTimetableSave(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/save',
    method: 'POST',
    data: params,
  });
} //保存节次设置
export function adminSchoolTimetableSemesterList(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/semester/list',
    params,
    method: 'GET',
  });
} //学期列表
export function adminSchoolTimetableUpdate(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/update',
    method: 'POST',
    data: params,
  });
} //修改节次设置
export function adminSchoolTimetableGradeConfigList(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/grade/config/list',
    data: params,
    method: 'GET',
  });
} //年级节次配置列表
export function adminSchoolTimetableGradeConfigRemove(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/grade/config/remove',
    method: 'POST',
    data: params,
  });
} //年级节次配置列表
export function adminSchoolTimetableGradeSubjectList(params) {
  return fetch({
    url: '/usercenter/admin/school/timetable/subject/list',
    method: 'GET',
    data: params,
  });
} //科目列表
